package edu.sctu.zhangwang.month201505.day20150510;

/**
 * Created by user10 on 2015/5/10.
 */
public class Class2 {

    public static void main(String[] args) {
        Class1 class1 = new Class1();
        new Class3(class1);
        if(class1.getAge()>18){
            System.out.println("选手："+class1.getName()+"  学号："+class1.getNumber()+"  年龄："+class1.getAge());
        }else {
            System.out.println("不符合");
        }
    }
}
